﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using FileDFS.Model.Enum;
using System.IO;
using System.ServiceModel;
/*
 * Coder:Tieria
 * WriteTime:2015.5.13
 * FileName:FileUploadModel.cs
 * ReMark:文件上传实体
 */
namespace FileDFS.Model
{
    [Serializable]
    [MessageContract]
    public class FileUploadModel
    {
        /// <summary>
        /// 唯一标识ID
        /// </summary>
        [MessageHeader]
        public int Id { get; set; }
        /// <summary>
        /// 扩展名
        /// </summary>
        [MessageHeader]
        public FileExtensionEnum FileExtension { get; set; }
        /// <summary>
        /// 数据源
        /// </summary>
        [MessageBodyMember]
        public Stream DataSource { get; set; }

    }
}
